package StudyCode.summary.textfile;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class WritingStringValueToAFile {
	public static void main(String[] args) {
		try {
			BufferedWriter out = new BufferedWriter(new FileWriter("E:/Copy/test1.txt"));
			out.write("www.tah1986.com");
			out.close();
			System.out.println("将字符串(String)值写入文件成功.");
		} catch (IOException e) {
		}
	}
}
